package com.celesea.workflow.core.entity;

import com.celesea.framework.entity.BusEntity;
import com.celesea.framework.util.Version;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 流程定义
 * @author JackYuan
 * @create 2017-11-05 16:28
 */
@Version
@Table(name = "wf_define")
public class WorkflowDefine extends BusEntity {

    @Column(name = "`code`", columnDefinition = "流程编码")
    protected String code;

    @Column(name = "`name`", columnDefinition = "流程名称")
    protected String name;

    @Column(name = "`description`", columnDefinition = "流程描述")
    protected String description;

    @Column(name = "`status_flag`", columnDefinition = "启停用状态：[0：停用，1：启用]", nullable = false)
    private Byte statusFlag;

    @Column(name = "`start_node_id`", columnDefinition = "流程开始节点id")
    protected String startNodeId;

    @Column(name = "`start_node_name`", columnDefinition = "流程开始节点名称")
    protected String startNodeName;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Byte getStatusFlag() {
        return statusFlag;
    }

    public void setStatusFlag(Byte statusFlag) {
        this.statusFlag = statusFlag;
    }

    public String getStartNodeId() {
        return startNodeId;
    }

    public void setStartNodeId(String startNodeId) {
        this.startNodeId = startNodeId;
    }

    public String getStartNodeName() {
        return startNodeName;
    }

    public void setStartNodeName(String startNodeName) {
        this.startNodeName = startNodeName;
    }
}
